package com.example.eurekaserverclientusefeign;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UseOneController {
    @Autowired
    OneInterface oneInterface;

    @RequestMapping("/to_one_test_port")
    public String testPort(){
        return "eureka-server-client-use-feign ==> "+oneInterface.testPort();
    }
}
